﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 美妆产品管理系统
{
    public partial class Tindex : Form
    {
        public Tindex()
        {
            InitializeComponent();
        }

        private void 日志管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 开始ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 修改密码ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            start.ChangePwd ch1 = new start.ChangePwd();
            ch1.ShowDialog();
        }

        private void 修改个人信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            start.Percom p1 = new start.Percom();
            p1.ShowDialog();
        }

        private void 添加商品信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TGoods.Insert_Goods in1 = new TGoods.Insert_Goods();
            in1.ShowDialog();
        }

        private void 修改商品信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TGoods.Update_Goods u1 = new TGoods.Update_Goods();
            u1.ShowDialog();
        }

        private void 日志管理ToolStripMenuItem1_Click(object sender, EventArgs e)
        {

        }

        private void 删除商品信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TGoods.Delete_Goods d1 = new TGoods.Delete_Goods();
            d1.ShowDialog();
        }

        private void Tindex_Load(object sender, EventArgs e)
        {

        }

        private void 审核订单ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Check_Order c1 = new Check_Order();
            c1.ShowDialog();
        }

        private void 查看日志ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Select_Order s1 = new Select_Order();
            s1.ShowDialog();
        }

        private void 部门管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 添加部门信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Login.Bflag == false) 
            {
                DialogResult dr = MessageBox.Show("请以管理员身份登录", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
                if (dr == DialogResult.OK)
                {
                    this.Close();
                    //MessageBox.Show("请以管理员身份登录");
                    Login l1 = new Login();
                    l1.ShowDialog();
                }
                else
                {
                    return;
                }
            }
            else
            {
                Department.Insert_department i1 = new Department.Insert_department();
                i1.ShowDialog();
            }
        }

        private void 修改部门信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Department.Update_department u1 = new Department.Update_department();
            u1.ShowDialog();
        }

        private void 删除部门信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Department.Delete_department d1 = new Department.Delete_department();
            d1.ShowDialog();
        }

        private void 客户管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 修改客户信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Customers.Update_customer u1 = new Customers.Update_customer();
            u1.ShowDialog();
        }

        private void 注销账户ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Customers.Delete_customer d1 = new Customers.Delete_customer();
            d1.ShowDialog();
        }

        private void 业绩审核ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Order.Proform p1 = new Order.Proform();
            p1.ShowDialog();
        }

        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void 登录ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Login l1 = new Login();
            l1.ShowDialog();
        }

        private void 日志管理ToolStripMenuItem2_Click(object sender, EventArgs e)
        {

        }

        private void 采购订单ToolStripMenuItem_Click(object sender, EventArgs e)
        {
           caigous.cgdd cg1 = new caigous.cgdd();
            cg1.ShowDialog();
        }

        private void 采购查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            caigous.shenhecaigou cg1 = new caigous.shenhecaigou();
            cg1.ShowDialog();
        }

        private void 入库单ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ruku.rkdd rk1= new ruku.rkdd();
            rk1.ShowDialog();
        }

        private void 审核入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ruku.shrk sh1 = new ruku.shrk();
            sh1.ShowDialog();
        }
    }
}
